package com.lxmes.sales.mapper;

import java.util.List;
import com.lxmes.sales.domain.NcPurchaseFormalPlan;

/**
 * 采购正式计划Mapper接口
 *
 * @author lx
 * @date 2023-06-06
 */
public interface NcPurchaseFormalPlanMapper
{
    /**
     * 查询采购正式计划
     *
     * @param id 采购正式计划主键
     * @return 采购正式计划
     */
    public NcPurchaseFormalPlan selectNcPurchaseFormalPlanById(Long id);

    /**
     * 查询采购正式计划列表
     *
     * @param ncPurchaseFormalPlan 采购正式计划
     * @return 采购正式计划集合
     */
    public List<NcPurchaseFormalPlan> selectNcPurchaseFormalPlanList(NcPurchaseFormalPlan ncPurchaseFormalPlan);
    public List<NcPurchaseFormalPlan> selectNcPurchaseFormalPlanBySupplierCode(NcPurchaseFormalPlan ncPurchaseFormalPlan);

    /**
     * 新增采购正式计划
     *
     * @param ncPurchaseFormalPlan 采购正式计划
     * @return 结果
     */
    public int insertNcPurchaseFormalPlan(NcPurchaseFormalPlan ncPurchaseFormalPlan);

    /**
     * 修改采购正式计划
     *
     * @param ncPurchaseFormalPlan 采购正式计划
     * @return 结果
     */
    public int updateNcPurchaseFormalPlan(NcPurchaseFormalPlan ncPurchaseFormalPlan);

    /**
     * 删除采购正式计划
     *
     * @param id 采购正式计划主键
     * @return 结果
     */
    public int deleteNcPurchaseFormalPlanById(Long id);

    /**
     * 批量删除采购正式计划
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcPurchaseFormalPlanByIds(Long[] ids);

    List<NcPurchaseFormalPlan> getNcPurchaseFormalPlanByPlanNumber(NcPurchaseFormalPlan ncPurchaseFormalPlan);
}
